package com.example.justbuy.service.Impl;

import com.example.justbuy.mapper.ImageMapper;
import com.example.justbuy.pojo.Image;
import com.example.justbuy.service.ImageMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class ImageMapperServiceImpl implements ImageMapperService{
    @Autowired
    private ImageMapper imageMapper;
    @Override
    public int save(HashMap map) {
        return imageMapper.save(map);
    }

    @Override
    public int saveEval(HashMap map) {
        return imageMapper.saveEval(map);
    }

    @Override
    public int getImageIdByImagePath(String path) {
        return imageMapper.getImageIdByImagePath(path);
    }

    @Override
    public int updateGoods(Map map){return imageMapper.updateGoods(map);}

    @Override
    public List<HashMap> getOrderformByPhone(Map map){return imageMapper.getOrderformByPhone(map);}

    @Override
    public List<HashMap> getOrderformByOrderformid(Map map){return imageMapper.getOrderformByOrderformid(map);}

    @Override
    public int updateGoodsId(Map map) {
        return imageMapper.updateGoodsId(map);
    }
}
